<?xml version="1.0"?>
<project name="APLE" default="test">

	<property value="AgileProductLinerDSL" name="project" />
	<property value="${project}" name="hudsonProject" />
	<!-- Location of the APDT Project and the AP server -->
	<property name="APLE_build.dir" value="C:\.hudson\jobs\APLE\workspace\AgileProductLinerDSL"/>

 <!-- Start by cleaning the build area -->
  <target name="clean" description="remove all build products" >
	
    <delete dir="build" if="${directory::exists('APLE_build.dir')}" />
  </target>
  <!-- Create a build area -->
  <target name="init" depends="clean">
    <mkdir dir="build"/>
  </target>
  <target name="compile" depends="init">
      <exec
      program="C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\msbuild.exe"
      commandline="AgileProductLinerDSL.sln"/>
 

 </target>

 <target name="test" depends="compile"> 
		<delete dir="TestResults"/>
		<mkdir dir="TestResults"/>
		<exec
			program="C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\MSTest.exe">
			<arg value='/testmetadata:${project}.vsmdi' /> 
			<arg value='/nologo' /> 
			<arg value="/resultsfile:TestResults\testResults.trx" />
		</exec>
		
		<exec program="MSBuild">
			<arg value='/property:hudsonProjectRoot="C:\.hudson\jobs\${hudsonProject}\workspace\${project}" "C:\VSCodeCoverage\GenerateCoverage.build"' />
			</exec>
		
		<exec program="C:\MsBuildNunit\msxsl.exe">
			<arg value="C:\.hudson\jobs\${hudsonProject}\workspace\${project}\TestResults\TestOut\In\ASEBEAST\data.xml" />
			<arg value="C:\VSCodeCoverage\MSTestCoverageToEmma.xsl"/>
			<arg value='-o'/><arg value="C:\.hudson\jobs\${hudsonProject}\workspace\${project}\TestResults\coverage.xml"/>
		</exec>
	</target>





</project>







